home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTccccllllXXXXIIIInnnniiiitttt((((3333TTTTccccllll)))) TTTTccccllllXXXXIIIInnnniiiitttt((((3333TTTTccccllll))))
-
-
-
- NNNNAAAAMMMMEEEE
- TclX_Init, TclXCmd_Init, TclXLib_Init, TclX_Main - Extended Tcl
- initialization.
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- -ltclx -ltcl
-
- #include "tclExtend.h"
-
- extern char *tclAppName;
- extern char *tclAppLongname;
- extern char *tclAppVersion;
- extern int tclAppPatchlevel;
-
- extern char *tclX_library;
- extern char *tclX_libraryEnv;
-
- int
- Tcl_AppInit (Tcl_Interp *interp);
-
- int
- TclX_Init (Tcl_Interp *interp);
-
- int
- TclXCmd_Init (Tcl_Interp *interp);
-
- int
- TclXLib_Init (Tcl_Interp *interp);
-
- void
- TclX_Main (int argc,
- char **argv,
- Tcl_AppInitProc *appInitProc);
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- These functions are used to initialize Extended Tcl and applications
- based on Extended Tcl.
-
- IMPORTANT NOTE: lllliiiibbbbttttccccllllxxxx....aaaa must be specified on the link command line
- before lllliiiibbbbttttccccllll....aaaa. If the order is reversed, incorrect command line
- parsing code will be used.
-
- ttttccccllllAAAAppppppppNNNNaaaammmmeeee
- The application name to be returned by the iiiinnnnffffooooxxxx command. This should be
- a short mnemonic. This value maybe altered from the default by the
- application.
-
- ttttccccllllAAAAppppppppLLLLoooonnnnggggnnnnaaaammmmeeee
- The application long name to be returned by the iiiinnnnffffooooxxxx command. This
- should be a natural language string. This value maybe altered from the
- default by the application.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- TTTTccccllllXXXXIIIInnnniiiitttt((((3333TTTTccccllll)))) TTTTccccllllXXXXIIIInnnniiiitttt((((3333TTTTccccllll))))
-
-
-
- ttttccccllllAAAAppppppppVVVVeeeerrrrssssiiiioooonnnn
- The application version string to be returned by the iiiinnnnffffooooxxxx command.
- procedures are called. This value maybe altered from the default by the
- application.
-
- ttttccccllllAAAAppppppppPPPPaaaattttcccchhhhlllleeeevvvveeeellll
- The application patchlevel to be returned by the iiiinnnnffffooooxxxx command.
- procedures are called. This value maybe altered from the default by the
- application.
-
- ttttccccllllXXXX____lllliiiibbbbrrrraaaarrrryyyy
- The path to the TclX runtime library. This directory contains the
- initialization file evaluated by TclX_Init and is also appended to
- auto_path. This variable is initialized to the compile-time specified
- install location. The value maybe modified before TclX_Init or
- TclXLib_Init are called to use another library in a particular
- application. If its set to NULL, no library will be used unless override
- by tclX_libraryEnv. Setting tclX_libraryEnv and this variable to NULL
- causes no library directory or initialization file to be used.
-
- ttttccccllllXXXX____lllliiiibbbbrrrraaaarrrryyyyEEEEnnnnvvvv
- Environment variable used to override the path stored in tclX_library.
- The value maybe modified before TclX_Init or TclXLib_Init are called to
- use another environment variable for a particular application. If its
- set to NULL, no environment variable will allow to override. Defaults to
- "TCL_LIBRARY".
-
- ttttccccllllXXXX____iiiinnnniiiittttFFFFiiiilllleeee
- The initialization file for TclX_Init to source. By default the file
- "TclInit.tcl" in the TclX library directory is sourced. If set to an
- absolute path, it is not assumed to be in the TclX library directory and
- is independent of a library path being specified. If set to NULL, not
- initialization file is evaluated.
-
- TTTTccccllll____AAAAppppppppIIIInnnniiiitttt
- This function is used to initialize an TclX based application. It is
- intended to the the only file that is modified for most applications.
- There are two versions of this function, one for applications built on
- just TclX and the other for applications built on TclX and Tk.
-
- The TclX version of this function is found in ttttccccllllXXXXAAAAppppppppIIIInnnniiiitttt....cccc and the Tk
- version is found in ttttkkkkXXXXAAAAppppppppIIIInnnniiiitttt....cccc. It should be modified according to the
- instructions in these files to initialize a TclX based application.
-
- A custom application is then linked in a manner similar to:
-
- cc tclXAppInit.o mystuff.a libtclx.a libtcl.a ${SYSLIBS} -o myapp
-
- or
-
- cc tkXAppInit.o mystuff.a libtkx.a libtk.a libtclx.a libtcl.a \
- ${SYSLIBS} -o myapp
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- TTTTccccllllXXXXIIIInnnniiiitttt((((3333TTTTccccllll)))) TTTTccccllllXXXXIIIInnnniiiitttt((((3333TTTTccccllll))))
-
-
-
- TTTTccccllllXXXX____IIIInnnniiiitttt
- Initializes Extended Tcl, adding the extended command set to the
- interpreter. This is called from TTTTccccllll____AAAAppppppppIIIInnnniiiitttt.
-
- Parameters
- oooo _i_n_t_e_r_p - A pointer to the interpreter to add the commands to.
-
- Returns:
- TTTTCCCCLLLL____OOOOKKKK if all is ok, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR if an error occurred.
-
- TTTTccccllllXXXXCCCCmmmmdddd____IIIInnnniiiitttt
- Add the TclX command set to the interpreter, with the exception of the
- TclX library management commands. This is normally called by TTTTccccllllXXXX____IIIInnnniiiitttt
- and should only be used if you don't want the TclX library handling.
-
- Parameters
- oooo _i_n_t_e_r_p - A pointer to the interpreter to add the commands to.
-
- Returns:
- TTTTCCCCLLLL____OOOOKKKK if all is ok, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR if an error occurred.
-
- TTTTccccllllXXXXLLLLiiiibbbb____IIIInnnniiiitttt
- Add the TclX library management commands to the interpreter. This is
- normally called by TTTTccccllllXXXX____IIIInnnniiiitttt. It also sets the Tcl variable
- "tclx_library" to TclX library directory.
-
- Parameters
- oooo _i_n_t_e_r_p - A pointer to the interpreter to add the commands to.
-
- Returns:
- TTTTCCCCLLLL____OOOOKKKK if all is ok, TTTTCCCCLLLL____EEEERRRRRRRROOOORRRR if an error occurred.
-
- TTTTccccllllXXXX____MMMMaaaaiiiinnnn
- This function parses the command line according to the TclX shell
- specification. It creates an interpreter and calls the specified
- function aaaappppppppIIIInnnniiiittttPPPPrrrroooocccc to initialize any application specific commands. It
- then either evaluates the command of script specified on the command line
- or enters an interactive command loop. This procedure never returns, it
- exits the process when it's done.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-